package com.lin.cloud.disk.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author 君影草
 * @date 2021/2/19 10:50
 */
@Data
public class DirectoryAndFileDTO {


    /**
     * 目录字段
     */
    @ApiModelProperty(value = "公司ID", name = "companyId")
    private Long companyId;
    @ApiModelProperty(value = "目录名称", name = "directoryName")
    private String directoryName;


    /**
     * 文件字段
     */
    @ApiModelProperty(value = "OSS存储桶名", name = "bucket")
    private String bucket;

    @ApiModelProperty(value = "OSS对象名", name = "objectName")
    private String objectName;

    @ApiModelProperty(value = "OSS对象上传ID", name = "uploadId")
    private String uploadId;

    @ApiModelProperty(value = "目录ID", name = "directoryId")
    private Long directoryId;


    @ApiModelProperty(value = "文件名", name = "fileName")
    private String fileName;

    @ApiModelProperty(value = "后缀名", name = "fileSuffix")
    private String fileSuffix;

    @ApiModelProperty(value = "文件大小", name = "fileSize")
    private Long fileSize;


    @ApiModelProperty(value = "上传状态： 0：未上传完成 1：已上传完成", name = "uploadStatus")
    private Integer uploadStatus;

    @ApiModelProperty(value = "文件MD5值", name = "md5")
    private String md5;


    @ApiModelProperty(value = "链接", name = "url")
    private String url;

    @ApiModelProperty(value = "预览链接", name = "previewUrl")
    private String previewUrl;

    /**
     * 公共字段
     */
    @ApiModelProperty(value = "ID", name = "id")
    private Long id;

    @ApiModelProperty(value = "用户ID", name = "userId")
    private Long userId;

    @ApiModelProperty(value = "删除 0:未删除 1:删除", name = "isDelete")
    private Integer isDelete;

    @ApiModelProperty(value = "创建时间", name = "createTime")
    private Date createTime;

    @ApiModelProperty(value = "修改时间", name = "updateTime")
    private Date updateTime;

    @ApiModelProperty(value = "创建人", name = "createBy")
    private String createBy;

    @ApiModelProperty(value = "修改人", name = "updateBy")
    private String updateBy;

    @ApiModelProperty(value = "是否问目录 true 是 false 不是", name = "isDir")
    private Boolean isDir;


}
